package com.fl.mapper;

import com.fl.dto.GoodsDo;
import com.fl.entity.Goods;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;


@Mapper
public interface GoodsHelper {

    GoodsHelper INSTANCE = Mappers.getMapper(GoodsHelper.class);

    Goods transform4Init(@MappingTarget Goods goods , GoodsDo goodsDo);

    GoodsDo transformUpdate(@MappingTarget GoodsDo goodsDo,Goods goods);
}
